package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-06-04 11:05
 */
public class Test05 {
    public static void main(String[] args) {
//        String s1="abc";
//        String s2="AbC";
//        System.out.println(s1.equals(s2));
//        System.out.println(s1.equalsIgnoreCase(s2));
//        System.out.println("abcdef".contains("cdx"));

//        System.out.println("abcdef".startsWith("abc"));
//        System.out.println("abcdef".startsWith("bc"));
//        System.out.println("abcdef".endsWith("ef"));
//        System.out.println("abcdef".endsWith("bc"));

        String s1="abc";
        String s2="";
        String s3=" ";
        System.out.println(s1.isEmpty());
        System.out.println(s2.isEmpty());
//        System.out.println(s3.isEmpty());
        if(s3!=null && !s3.isEmpty()){
            System.out.println("ok");
        }else{
            System.out.println("空");
        }
        System.out.println(s3.length());
        System.out.println("abcd".charAt(0));
        System.out.println("abcd".charAt(1));
        Scanner scanner=new Scanner(System.in);
        char mychar = scanner.next().charAt(0);
    }

}
